<template>
  <div>
    <h2>TsButton</h2>
    <button @click="add(1, 2)">{{ title }}</button>
  </div>
</template>
<script setup>
import { ref, defineExpose } from 'vue';
const title = ref('TsButton');

const add = function (x, y) {
  console.log(x + y);
};

defineExpose({
  title,
  add,
});
</script>